<template>
  <div class="no-padding app-container check-bus-root">
    <div v-if="inspectInfo != null" class="process-container">
      <inspect-info ref="inspectInfo" :handel-code="handelCode" :inspect-info="inspectInfo"></inspect-info>
    </div>
    <div v-if="inspectInfo != null" class="table-data-container">
      <component  @change="reload" v-if="inspectInfo != null" :handelCode="handelCode"
                 :inspectInfo="inspectInfo" :is="handelCode"></component>
    </div>
  </div>
</template>

<script>
import inspectInfo from "@/views/checkBusPage/components/inspectInfo/index.vue";
import {inspectMixins} from "@/views/checkBusPage/mixins/inspectMixins";
import SelfInspection from "@/views/checkBusPage/subPage/selfInspection.vue";
import HiddenDangerRectification from "@/views/checkBusPage/subPage/hiddenDangerRectification.vue";
import QyHiddenDangerReview from "@/views/checkBusPage/subPage/qyHiddenDangerReview.vue";
import JgHiddenDangerReview from "@/views/checkBusPage/subPage/jgHiddenDangerReview.vue";
import JgHiddenDangerReviewFs from "@/views/checkBusPage/subPage/jgHiddenDangerReviewFs.vue";
import SpotCheck from "@/views/checkBusPage/subPage/spotCheck.vue";
import SuperviseAndExamine from "@/views/checkBusPage/subPage/superviseAndExamine.vue";
import hiddenDangerQuery from "@/views/checkBusPage/subPage/hiddenDangerQuery.vue";
export default {
  name: "check_sub_page",
  mixins: [inspectMixins],
  components: {
    inspectInfo,
    SelfInspection,
    HiddenDangerRectification,
    QyHiddenDangerReview,
    JgHiddenDangerReview,
    JgHiddenDangerReviewFs,
    SpotCheck,
    SuperviseAndExamine,
    hiddenDangerQuery
  },
  methods: {
    reload() {
      this.$refs.inspectInfo.reload()
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
